import random
option = ['石头', '剪刀', '布']
#计算机出拳
computer = random.choice(option)
win = [['石头', '剪刀'], ['剪刀', '布'], ['布', '石头']]
#人出拳
player = input('请出拳/剪刀/布：')
print('你出的：%s, 计算机出的%s' % (player, computer))
if player == computer:
    print(player,computer); print('\033[32;1m平局\033[0m')
elif  [player, computer] in win:
   print('\033[31;1mYou Win!!!\033[0m')
else:
     print('\033[31;1mYou Lose\033[0m')